package com.demo.expertsystemdemo.entity.mongodb;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.data.mongodb.core.mapping.MongoId;

import java.util.Date;
import java.util.List;

/**
 * @author lzb22
 * 专家信息实体
 * 使用MongoTemplate传统方式
 */
@Data
@ToString
@Accessors(chain = true)
public class ExpertInfo {
    private String id;
    private String name;
    private String idCard;
    private int age;
    private String professional;
    private String gender;
    private List<String> record;
    @JsonFormat( pattern ="yyyy-MM-dd", timezone ="GMT+8")
    private Date createTime;
}
